package com.bwhx.eruler.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class DownLoadAppController extends BaseController {
	@ResponseBody
	@RequestMapping("/download/app/android.ashx")
	public void DownLoadAndroid(HttpServletRequest request,HttpServletResponse response) {
		try {
			response.sendRedirect("http://a.app.qq.com/o/simple.jsp?pkgname=com.etapemeasure");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	@ResponseBody
	@RequestMapping("/download/app/ios.ashx")
	public void DownLoadIOS(HttpServletRequest request,HttpServletResponse response) {
		try {
			response.sendRedirect("https://itunes.apple.com/us/app/id1168889295");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
